

								<table id="sample-table-2" class="table table-striped table-bordered table-hover">
									<thead>

										<tr>
											<th class="center">
												<label>
													<input type="checkbox" class="ace" id="alldel" value=""/>
													<span class="lbl"></span>
												</label>
											</th>
											<th>ID</th>
											<th>用户名</th>
											<th>
												最后登录时间
											</th>
											<th class="hidden-480">是否有效</th>
											<th>操作</th>
										</tr>
									</thead>

									<tbody>

										<volist name="lists['lists']" id="vo">
											<tr>

												<td class="center">
													<label>
													<if condition ="$vo.id neq 1">
														<input type="checkbox" class="ace" value="{$vo.id}" />
														<span class="lbl"></span>
													</if>

													</label>
												</td>
												<td>
													<a href="#">{$i}</a>
												</td>
												<td>{$vo.username}</td>
												<td>{$vo.add_time}</td>
												<td class="hidden-480">{$vo['is_activity'] ==1?'有效':'无效'}</td>

												<td>
													<if condition ="$vo.id neq 1">
													<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
													  <if condition ="$Think.session.admin_user.power eq 'all'">
															<a class="btn btn-sm btn-success " href="#" onclick="_es_openDilog70id('{:U('Nav/access_control',array('id'=>$vo['id']))}','权限分配','quanxianfenpei')" title="权限分配">
															分配权限
															</a>
                                                      </if>
															<a  class="btn btn-sm btn-success " href="#" onclick="_es_openDilogMiddle2('{:U('Nav/edit_admin',array('is_add'=>0,'id'=>$vo['id']))}','编辑','quanxianfenpei')" title="编辑">
																编辑
															</a>

															<a  class="btn btn-sm btn-success " href="#" onclick="delete_ok({$vo['id']})" title="删除">
																删除
															</a>
														</div>

<!-- 														<div class="visible-xs visible-sm hidden-md hidden-lg">
															<div class="inline position-relative">
																<button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown">
																	<i class="icon-caret-down icon-only bigger-120"></i>
																</button>

																<ul class="dropdown-menu dropdown-only-icon dropdown-yellow pull-right dropdown-caret dropdown-close">
																<if condition ="$Think.session.admin_user.power eq 'all'">
																	<li>
																		<a href="#" class="tooltip-info" data-rel="tooltip"  onclick="_es_openDilog70id('{:U('Nav/access_control',array('id'=>$vo['id']))}','权限分配','quanxianfenpei')">
																			<span class="blue" >
																				<i class="icon-zoom-in bigger-120"></i>
																			</span>
																		</a>
																	</li>
                                                                </if>
																	<li>
																		<a href="#" class="tooltip-success" data-rel="tooltip" title="编辑" onclick="_es_openDilog90('{:U('Nav/add_menu',array('is_add'=>0,'id'=>$vo['id']))}','编辑','quanxianfenpei')">
																			<span class="green">
																				<i class="icon-edit bigger-120"></i>
																			</span>
																		</a>
																	</li>

																	<li>
																		<a href="#" class="tooltip-error" data-rel="tooltip" title="删除" onclick="delete_ok($vo['id'])">
																			<span class="red">
																				<i class="icon-trash bigger-120"></i>
																			</span>
																		</a>
																	</li>
																</ul>
															</div>
														</div> -->
													</if>
												</td>
											</tr>
										</volist>
									</tbody>
								</table>
								<a class='btn btn-sm btn-danger' onclick="batch_set_user()">批量删除</a>
					<table style="width: 80%; float: right; margin-bottom:10px">
					    <tr>
					        <td style="text-align: right;"> <div class="page_list_ops dataTables_paginate paging_bootstrap pagination" >{$lists['page_html']}</div></td>
					    </tr>
					</table>

<script type="text/javascript">
    $(function(){
        $("#tbmain tr").hover(function(){
            $(this).css({"background-color":"rgba(243, 236, 236, 0.72)"});
        },function(){
            $(this).css({"background-color":"#fff"});
        });

         $("#alldel").bind("click",checkSel);
    });

     function checkSel(){
       var flg= $(this).is(":checked");
       $("input[type='checkbox']").prop("checked",flg);
    }

   function selallval(){
     var _list="";
     $("#sample-table-2 input[type='checkbox']:checked").each(function(){
         // var flg=$(this).is(":checked");
         //if(!flg)return false;
         var _val=$(this).val();
         if(_val!=""){
         _list+= (_list==""?"":",")+"'"+_val+"'";
         } 
     });
     return _list;
} 
//批量设置会员有效无效
function batch_set_user(){
     //获取需要删除信息
     var _val=selallval();
     if(_val==""){
     	art.dialog({title:'温馨提示',content: '<span style="color:red;">请勾选需要删除的记录!</span>', ok: function () {this.close();return false;},okval:'确定'});
        return false;
     }
     $.ajax({
             'url': "{:U('Index/del_admin')}",
             'data': {'allid':_val},
             'dataType': 'json',
             'type': 'POST',
             success: function (data) {
                 if (data.state =="1") {  
                    art.dialog({title:'温馨提示',content: data.msg, ok: function () {this.close();  load();return false;},okval:'确定'});
                 }

                if (data.state =="0") {  
                    art.dialog({title:'温馨提示',content: data.msg, ok: function () {this.close();  load();return false;},okval:'确定'});
                 }
             }, error: function (err) { 
                 art.dialog({title:'温馨提示',content: err.responseText, ok: function () {this.close();return false;},okval:'确定'});
             },complete: function () {
                
             }
         });

}
    function _es_openDilog90(url, title,id){ 
     art.dialog.open(url, { title: title, width: '1200px', height: '90%', opacity: 0.2, id: id, fixed: true, close:function(){load();}  });
}
</script>